import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import Myhome from '../views/myhome.vue'
import My from '../views/my.vue'
import FindPass from '../views/findpass.vue'
import Course from '../views/course.vue'
import Find from '../views/find.vue'
import Shop from '../views/shop.vue'
import Homepage from '../views/homepage'
import Creation from '../views/creation'
import Draft from '../views/draft'
import Concern from '../views/concern'
import Collect from '../views/collect'
import Browse from '../views/browse'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,

  },
  {
    path: '/login',
    name: 'Login',
    component: Login,

  },{
    path: '/findpass',
    name: 'FindPass',
    component: FindPass
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },{
    path: '/my',
    name: 'My',
    component: My
  },{
    path: '/homepage',
    name: 'Homepage',
    component: Homepage
  },
  {
    path: '/course',
    name: 'Course',
    component: Course
  },
  {
    path: '/myhome',
    name: 'Myhome',
    component: Myhome
  },
  {
    path: '/find',
    name: 'Find',
    component: Find
  },
  {
    path: '/shop',
    name: 'Shop',
    component: Shop
  },
  {
    path: '/creation',
    name: 'Creation',
    component: Creation
  },{
    path: '/draft',
    name: 'Draft',
    component: Draft
  },{
    path: '/concern',
    name: 'Concern',
    component: Concern
  },{
    path: '/collect',
    name: 'Collect',
    component: Collect
  },{
    path: '/browse',
    name: 'Browse',
    component: Browse
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
